package dao;

import model.Message;
import model.User;

import java.time.LocalDateTime;
import java.util.List;

public interface MessagesManagement {
    List<Message> findAll(int pageSize, int page) ;
    List<Message> findByTime(LocalDateTime begintime, LocalDateTime endtime) ;
    List<Message> findBySender(long senderId);
    int sendMessage(long msgTypeId, long msgSenderID, String msgContent, List<User> recivers);
    int deleteMessagesBySender(long senderID);
    int deleteMessagesByReciver(long reciverID);
}
